package tools.promoter;

public class Motif implements Comparable<Motif>{

	private String gene,motif;
	private char strand;
	private int start, stop;
	
	public Motif(String gene, String motif, char strand, int start, int stop) {
		super();
		this.gene = gene;
		this.motif = motif;
		this.strand = strand;
		this.start = start;
		this.stop = stop;
	}

	public String getGene() {
		return gene;
	}

	public void setGene(String gene) {
		this.gene = gene;
	}

	public String getMotif() {
		return motif;
	}

	public void setMotif(String motif) {
		this.motif = motif;
	}

	public char getStrand() {
		return strand;
	}

	public void setStrand(char strand) {
		this.strand = strand;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getStop() {
		return stop;
	}

	public void setStop(int stop) {
		this.stop = stop;
	}

	public int compareTo(Motif m2) {
		return this.getStart()-m2.getStart();
	}
	
	
}
